enum Direction{
  UP = 'up',
  LEFT = 'left',
  RIGHT = 'right',
  BOTTOM = 'bottom'
}

function move(direction: Direction){
  if(direction === 'up'){
    console.log('向上移动')
  }else if(direction === 'bottom'){
    console.log('向下移动')
  }else if(direction === 'left'){
    console.log('向左移动')
  }else if(direction === 'right'){
    console.log('向右移动')
  }
}

move(Direction.BOTTOM)


enum Color{
  RED = 0xff0000,
  GREEN = 0x00ff00,
  BLUE = 0x0000ff,
}

enum FontSize{
  SMALL = 12,
  MIDIUM = 16,
  LARGE = 20,
  EXTRALARGE = 24,
}
